import QtQuick 2.0

Rectangle {
    id: cusWindowMaskRoot
    visible: false
    color: "#32000000"
    anchors.fill: parent
    anchors.topMargin: Theme.topMargin
    function show() { visible = true }
    function close() { visible = false; sigClose() }
    signal sigClose();
    onVisibleChanged: { Theme.maskVisible = visible }

    MouseArea {
        anchors.fill: parent;
        hoverEnabled: true
        onPressed: { mouse.accepted = true; focus = true }
        onWheel: { }
    }

    DropArea {
        anchors.fill: parent
        onEntered: { }
        onExited: { }
        onDropped: { }
    }
}
